package com.hoas.quickstart.threads.chapter01.chapter01_2_9;

public class MyThread extends Thread {

    private int count = 10;

    /**
     * 加上synchronized可演示线程安全情况
     */
    @Override
    public void run() {
        super.run();


        System.out.println("有"+ this.currentThread().getName() +"计算,count=" + (count--));

    }
}
